import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text("linear Widget Demo"),
      ),
      body: const LinearWidget(),
    ),
  ));
}

class LinearWidget extends StatelessWidget {
  const LinearWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>  [
            Text(" Hello World, "),
            Text(" I am Jack ")
          ],
        ),
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          mainAxisSize: MainAxisSize.min,
          children: const <Widget>  [
            Text(" Hello World, "),
            Text(" I am Jack ")
          ],
        ),
        Row(
          mainAxisAlignment: MainAxisAlignment.end,
          textDirection: TextDirection.rtl,
          children: const <Widget>  [
            Text(" Hello World, "),
            Text(" I am Jack ")
          ],
        ),
        Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          verticalDirection: VerticalDirection.up,
          children: const <Widget>  [
            Text(" Hello World, ", style: TextStyle(fontSize: 30.0),),
            Text(" I am Jack ", )
          ],
        ),
      ],
    );

  }
}
